:root {
  --aim-navy: #0d2240;
  --aim-blue: #1a3a6b;
  --aim-sky: #2563eb;
  --aim-accent: #e35d1a;
  --aim-amber: #f59e0b;
  --aim-green: #16a34a;
  --aim-red: #dc2626;
  --aim-teal: #0d9488;
  --aim-purple: #7c3aed;
  --aim-light: #f5f7fb;
  --aim-white: #ffffff;
  --aim-border: #e2e8f4;
  --aim-muted: #6b7a99;
  --aim-text: #1e2d4a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--aim-light);
  color: var(--aim-text);
  overflow-x: hidden
}

/* ── NAV (Bootstrap 5 Navbar) ── */
.aim-navbar {
  background: var(--aim-white) !important;
  border-bottom: 1px solid var(--aim-border);
  box-shadow: 0 2px 16px rgba(13, 34, 64, .06)
}

.aim-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.aim-brand-logo {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0
}

.aim-brand-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain
}

.aim-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--aim-navy);
  letter-spacing: -.01em;
  line-height: 1.2
}

.aim-brand-name span {
  color: var(--aim-sky)
}

.aim-brand-sub {
  font-size: .65rem;
  color: var(--aim-muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase
}

.navbar-nav .nav-link {
  color: var(--aim-muted);
  font-size: .85rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 7px 14px !important;
  transition: all .18s
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--aim-light);
  color: var(--aim-navy)
}

.aim-nav-login {
  border: 1.5px solid var(--aim-sky);
  color: var(--aim-sky);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .18s
}

.aim-nav-login:hover {
  background: var(--aim-sky);
  color: #fff
}

.aim-nav-cta {
  background: var(--aim-sky);
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .18s
}

.aim-nav-cta:hover {
  background: #1d4ed8;
  color: #fff
}

.aim-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: aim-pulse 1.4s infinite;
  display: inline-block
}

@keyframes aim-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(.8)
  }
}

.navbar-toggler {
  border-color: rgba(13, 34, 64, .15) !important
}

.navbar-toggler:focus {
  box-shadow: none
}

/* ── HERO (Redesigned) ── */
.aim-hero {
  background: var(--aim-navy);
  position: relative;
  overflow: hidden;
  padding: 0
}

.aim-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&auto=format&fit=crop&q=60') center/cover no-repeat;
  opacity: .09
}

.aim-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(13, 34, 64, 1) 0%, rgba(13, 34, 64, .95) 40%, rgba(26, 58, 107, .7) 70%, rgba(37, 99, 235, .2) 100%)
}

.aim-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none
}

.aim-hero-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, .18) 0%, transparent 65%);
  pointer-events: none
}

.aim-hero-glow2 {
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 148, 136, .1) 0%, transparent 65%);
  pointer-events: none
}

.aim-hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aim-sky) 0%, var(--aim-teal) 50%, transparent 100%)
}

.aim-hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0 72px
}

.aim-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .15);
  border: 1px solid rgba(37, 99, 235, .35);
  border-radius: 30px;
  padding: 6px 16px 6px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(4px)
}

.aim-hero-gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: .68rem;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px
}

.aim-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 20px;
  letter-spacing: -.02em
}

.aim-hero h1 span {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.aim-hero-lead {
  color: rgba(255, 255, 255, .55);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 32px
}

.aim-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.aim-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 10px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(37, 99, 235, .4)
}

.aim-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, .5)
}

.aim-btn-ghost {
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  backdrop-filter: blur(4px)
}

.aim-btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .3)
}

/* Hero stat pills */
.aim-hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px
}

.aim-hero-stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(6px);
  transition: background .2s
}

.aim-hero-stat:hover {
  background: rgba(255, 255, 255, .09)
}

.aim-hero-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.aim-hero-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1
}

.aim-hero-stat-lbl {
  font-size: .7rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .05em
}

/* Hero visual panel */
.aim-hero-visual {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4)
}

.aim-hero-visual-header {
  background: rgba(255, 255, 255, .07);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.aim-dot-red {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444
}

.aim-dot-amber {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b
}

.aim-dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e
}

.aim-hero-visual-title {
  font-size: .75rem;
  color: rgb(255 255 255);
  font-weight: 500;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: .04em
}

.aim-camera-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  height: 240px
}

.aim-cam-feed {
  background: linear-gradient(135deg, #071529 0%, #0d2240 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden
}

.aim-cam-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(0, 0, 0, .06) 2px, rgba(0, 0, 0, .06) 4px);
  pointer-events: none;
  z-index: 0
}

.aim-cam-label {
  font-size: .64rem;
  font-weight: 600;
  color: rgb(255 255 255);
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1
}

.aim-cam-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, .18);
  border: 1px solid rgba(34, 197, 94, .4);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .6rem;
  font-weight: 700;
  color: #4ade80;
  position: relative;
  z-index: 1
}

.aim-hero-visual-footer {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, .2)
}

.aim-hero-visual-footer-label {
  font-size: .72rem;
  color: rgba(255, 255, 255);
  display: flex;
  align-items: center;
  gap: 5px
}

/* Mini metrics strip */
.aim-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .06);
  border-top: 1px solid rgba(255, 255, 255, .08)
}

.aim-hero-metric {
  padding: 12px 10px;
  text-align: center;
  background: rgba(255, 255, 255, .02)
}

.aim-hero-metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1
}

.aim-hero-metric-lbl {
  font-size: .6rem;
  color: rgb(255 255 255);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3px
}

/* ── SECTION TITLES ── */
.aim-section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aim-sky);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px
}

.aim-section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--aim-sky);
  border-radius: 2px;
  flex-shrink: 0
}

.aim-section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--aim-navy);
  line-height: 1.2;
  margin-bottom: 8px
}

.aim-section-sub {
  font-size: .9rem;
  color: var(--aim-muted);
  line-height: 1.7;
  margin-bottom: 0
}

/* ── DASHBOARD STATS ── */
.aim-stats-section {
  padding: 48px 0
}

.aim-stat-card {
  background: var(--aim-white);
  border: 1px solid var(--aim-border);
  border-radius: 18px;
  padding: 22px 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s
}

.aim-stat-card:hover {
  box-shadow: 0 8px 32px rgba(13, 34, 64, .1);
  transform: translateY(-3px)
}

.aim-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: var(--aim-stripe, #2563eb)
}

.aim-stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px
}

.aim-stat-card-val {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px
}

.aim-stat-card-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--aim-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px
}

.aim-stat-card-sub {
  font-size: .75rem;
  color: var(--aim-muted)
}

.aim-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: .72rem;
  font-weight: 700
}

.aim-badge-red {
  background: #fef2f2;
  color: var(--aim-red)
}

.aim-badge-green {
  background: #f0fdf4;
  color: var(--aim-green)
}

.aim-badge-amber {
  background: #fffbeb;
  color: #92400e
}

.aim-badge-blue {
  background: #eff6ff;
  color: var(--aim-sky)
}

/* ── ALERT TABLE ── */
.aim-alerts-section {
  padding: 0 0 52px
}

.aim-table-card {
  background: var(--aim-white);
  border: 1px solid var(--aim-border);
  border-radius: 18px;
  overflow: hidden
}

.aim-table-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--aim-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px
}

.aim-table-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--aim-navy)
}

.aim-table-sub {
  font-size: .78rem;
  color: var(--aim-muted)
}

.aim-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--aim-red)
}

.aim-table-wrap {
  overflow-x: auto
}

table.aim-table {
  width: 100%;
  border-collapse: collapse
}

.aim-table th {
  background: #f8f9fc;
  padding: 11px 16px;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--aim-muted);
  border-bottom: 1px solid var(--aim-border);
  white-space: nowrap
}

.aim-table td {
  padding: 13px 16px;
  font-size: .84rem;
  border-bottom: 1px solid rgba(226, 232, 244, .6);
  vertical-align: middle
}

.aim-table tr:last-child td {
  border-bottom: none
}

.aim-table tr:hover td {
  background: #fafbfd
}

.aim-alert-type {
  display: flex;
  align-items: center;
  gap: 8px
}

.aim-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0
}

.aim-vehicle-tag {
  font-family: monospace;
  font-size: .82rem;
  background: var(--aim-light);
  border: 1px solid var(--aim-border);
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 600;
  color: var(--aim-navy)
}

.aim-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700
}

/* ── CAMERA LOCATIONS ── */
.aim-locations-section {
  padding: 0 0 56px
}

.aim-location-card {
  background: var(--aim-white);
  border: 1px solid var(--aim-border);
  border-radius: 16px;
  padding: 18px 16px;
  height: 100%;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.aim-location-card:hover {
  box-shadow: 0 6px 24px rgba(13, 34, 64, .09);
  border-color: #c4cfe8;
  transform: translateY(-3px)
}

.aim-location-top {
  display: flex;
  align-items: flex-start;
  gap: 10px
}

.aim-location-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.aim-location-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--aim-navy);
  line-height: 1.3;
  margin-bottom: 3px
}

.aim-location-type {
  font-size: .72rem;
  color: var(--aim-muted);
  font-weight: 500
}

.aim-location-addr {
  font-size: .76rem;
  color: var(--aim-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 5px
}

.aim-location-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--aim-border)
}

.aim-location-dist {
  font-size: .72rem;
  font-weight: 600;
  color: var(--aim-sky);
  display: flex;
  align-items: center;
  gap: 4px
}

.aim-location-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 600
}

/* ── FEATURES ── */
.aim-features-section {
  padding: 0 0 56px
}

.aim-feature-card {
  background: var(--aim-white);
  border: 1px solid var(--aim-border);
  border-radius: 18px;
  padding: 28px 24px;
  height: 100%;
  transition: box-shadow .2s, transform .2s
}

.aim-feature-card:hover {
  box-shadow: 0 8px 32px rgba(13, 34, 64, .1);
  transform: translateY(-3px)
}

.aim-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px
}

.aim-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--aim-navy);
  margin-bottom: 8px
}

.aim-feature-desc {
  font-size: .86rem;
  color: var(--aim-muted);
  line-height: 1.7;
  margin: 0
}

.aim-feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px
}

/* ── HOW IT WORKS ── */
.aim-how-section {
  background: var(--aim-navy);
  padding: 64px 0;
  position: relative;
  overflow: hidden
}

.aim-how-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, .12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none
}

.aim-step-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  height: 100%;
  transition: background .2s
}

.aim-step-card:hover {
  background: rgba(255, 255, 255, .08)
}

.aim-step-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .06);
  line-height: 1;
  margin-bottom: 14px;
  position: absolute;
  top: 16px;
  right: 20px
}

.aim-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px
}

.aim-step-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px
}

.aim-step-desc {
  font-size: .83rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.65;
  margin: 0
}

.aim-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px
}

.aim-connector-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, .15)
}

/* ── MAP SECTION ── */
.aim-map-section {
  padding: 0 0 56px
}

.aim-map-card {
  background: var(--aim-white);
  border: 1px solid var(--aim-border);
  border-radius: 18px;
  overflow: hidden
}

.aim-map-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--aim-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px
}

.aim-map-embed {
  width: 100%;
  height: 420px;
  display: block;
  border: none
}

.aim-map-footer {
  padding: 14px 22px;
  background: #f8f9fc;
  border-top: 1px solid var(--aim-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center
}

.aim-map-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--aim-muted)
}

.aim-map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0
}

/* ── FOOTER (Redesigned) ── */
.aim-footer {
  background: linear-gradient(175deg, #0d1f3c 0%, var(--aim-navy) 100%);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  position: relative;
  overflow: hidden
}

.aim-footer::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, .07) 0%, transparent 70%);
  pointer-events: none
}

.aim-footer-top {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(37, 99, 235, .06)
}

.aim-footer-gov-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap
}

.aim-footer-gov-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .03em
}

.aim-footer-gov-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15)
}

.aim-footer-main {
  padding: 52px 0 32px;
  position: relative;
  z-index: 1
}

.aim-footer-brand-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px
}

.aim-footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px
}

.aim-footer-brand span {
  color: #60a5fa
}

.aim-footer-tagline {
  font-size: .7rem;
  color: rgb(255 255 255 / 98%);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px
}

.aim-footer-desc {
  font-size: .84rem;
  color: rgb(255 255 255 / 65%);
  line-height: 1.75;
  max-width: 290px;
  margin-bottom: 22px
}

.aim-footer-stats-row {
  display: flex;
  gap: 0;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px
}

.aim-footer-stat-item {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .06)
}

.aim-footer-stat-item:last-child {
  border-right: none
}

.aim-footer-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1
}

.aim-footer-stat-lbl {
  font-size: .62rem;
  color: rgba(255, 255, 255, .3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px
}

.aim-footer-social {
  display: flex;
  gap: 8px
}

.aim-footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  cursor: pointer
}

.aim-footer-social-btn:hover {
  background: rgba(37, 99, 235, .3);
  border-color: rgba(37, 99, 235, .5)
}

.aim-footer-heading {
  /*  */
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.aim-footer-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgb(255 255 255 / 69%);
  font-size: .84rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all .18s;
  padding: 4px 0
}

.aim-footer-link:hover {
  color: rgba(255, 255, 255, .9);
  padding-left: 4px
}

.aim-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: rgb(255 255 255 / 69%);
  margin-bottom: 12px;
  line-height: 1.5
}

.aim-footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(37, 99, 235, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px
}

.aim-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 20px 0
}

.aim-footer-copy {
  font-size: .78rem;
  color: rgb(255 255 255 / 65%)
}

.aim-footer-copy span {
  color: rgb(255 255 255);
}

.aim-footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.aim-footer-bottom-link {
  font-size: .76rem;
  color: rgb(255 255 255 / 65%);
  text-decoration: none;
  transition: color .18s
}

.aim-footer-bottom-link:hover {
  color: rgba(255, 255, 255, .7)
}

/* ── ANIMATIONS ── */
@keyframes aim-up {
  from {
    opacity: 0;
    transform: translateY(18px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.aim-anim {
  opacity: 0;
  animation: aim-up .55s ease forwards
}

.aim-d1 {
  animation-delay: .06s
}

.aim-d2 {
  animation-delay: .14s
}

.aim-d3 {
  animation-delay: .22s
}

.aim-d4 {
  animation-delay: .30s
}

.aim-d5 {
  animation-delay: .38s
}

.aim-d6 {
  animation-delay: .46s
}


/* ═══════════════════════════════════════════
   AP MINES PORTAL — DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --mp-navy: #0d2240;
  --mp-blue: #1a3a6b;
  --mp-sky: #1d6fd4;
  --mp-sky-light: #3b82f6;
  --mp-accent: #f97316;
  --mp-amber: #f59e0b;
  --mp-green: #16a34a;
  --mp-red: #dc2626;
  --mp-teal: #0d9488;
  --mp-purple: #7c3aed;
  --mp-bg: #f1f4f9;
  --mp-card: #ffffff;
  --mp-border: #dde3ef;
  --mp-muted: #6b7a99;
  --mp-text: #1e2d4a;
  --mp-sidebar-w: 240px;
  --mp-sidebar-collapsed: 64px;
  --mp-topbar-h: 60px;
  --mp-radius: 14px;
  --mp-shadow: 0 2px 16px rgba(13, 34, 64, .08);
  --mp-shadow-md: 0 6px 28px rgba(13, 34, 64, .12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--mp-text);
  background: var(--mp-bg);
  overflow-x: hidden
}

/* ═══════════════════════════════════════════
   PAGE SWITCHING UTILITY
═══════════════════════════════════════════ */
.mp-page {
  display: none
}

.mp-page.mp-active {
  display: block
}

/* ═══════════════════════════════════════════
   ── LOGIN PAGE ──
═══════════════════════════════════════════ */
.lp-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #0a1628;
}

/* Full-bleed bg image */
.lp-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1800&auto=format&fit=crop&q=70') center/cover no-repeat;
  opacity: .28;
}

.lp-bg-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 22, 40, .97) 0%, rgba(13, 34, 64, .88) 38%, rgba(26, 58, 107, .4) 70%, rgba(13, 34, 64, .6) 100%);
}

.lp-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.lp-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.lp-topbar {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.lp-gov-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.lp-help {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Main content */
.lp-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 32px;
  gap: 40px;
  justify-content: space-around;
}

/* Left info panel */
.lp-left {
  flex: 1;
  max-width: 480px;
}

.lp-ap-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.lp-ap-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.lp-ap-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.lp-ap-name span {
  color: #60a5fa
}

.lp-ap-sub {
  font-size: .68rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.lp-dept-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.lp-dept-title span {
  color: #60a5fa
}

.lp-dept-sub {
  font-size: .84rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 380px;
}

/* Officials list */
.lp-officials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.lp-official {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
  transition: background .18s;
}

.lp-official:hover {
  background: rgba(255, 255, 255, .09)
}

.lp-official-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, .5), rgba(13, 148, 136, .5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .15);
  overflow: hidden;
}

.lp-official-info {}

.lp-official-name {
  font-size: .83rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.lp-official-role {
  font-size: .7rem;
  color: rgba(255, 255, 255, .42);
  margin-top: 1px;
}

/* Stats strip */
.lp-stats-strip {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  overflow: hidden;
}

.lp-stat-item {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.lp-stat-item:last-child {
  border-right: none
}

.lp-stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.lp-stat-lbl {
  font-size: .62rem;
  color: rgba(255, 255, 255, .35);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
}

/* Right login card */
.lp-right {
  width: 420px;
  flex-shrink: 0;
}

.lp-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.lp-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.lp-card-logo-icon {
  width: 44px;
  height: 44px;
}

.lp-card-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--mp-navy);
}

.lp-card-brand-name span {
  color: var(--mp-sky)
}

.lp-card-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--mp-navy);
  margin-bottom: 4px;
}

.lp-card-sub {
  font-size: .88rem;
  color: var(--mp-muted);
  margin-bottom: 28px;
}

.lp-form-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--mp-text);
  margin-bottom: 6px;
  display: block;
  letter-spacing: .02em;
}

.lp-form-group {
  margin-bottom: 18px
}

.lp-input-wrap {
  position: relative
}

.lp-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mp-muted);
  display: flex;
  align-items: center;
}

.lp-input {
  width: 100%;
  border: 1.5px solid var(--mp-border);
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9rem;
  color: var(--mp-text);
  background: #f8fafd;
  transition: border-color .18s, background .18s, box-shadow .18s;
  outline: none;
}

.lp-input:focus {
  border-color: var(--mp-sky);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 111, 212, .12);
}

.lp-input::placeholder {
  color: #b0bdd6
}

.lp-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mp-muted);
  padding: 0;
  display: flex;
}

.lp-forgot {
  text-align: right;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--mp-sky);
  text-decoration: none;
  font-weight: 600;
}

.lp-forgot:hover {
  text-decoration: underline
}

.lp-role-select {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.lp-role-btn {
  flex: 1;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--mp-border);
  background: #f8fafd;
  color: var(--mp-muted);
  transition: all .18s;
  text-align: center;
}

.lp-role-btn.active {
  border-color: var(--mp-sky);
  background: rgba(29, 111, 212, .08);
  color: var(--mp-sky);
}

.lp-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--mp-sky), #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(29, 111, 212, .35);
  margin-top: 6px;
}

.lp-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 8px 24px rgba(29, 111, 212, .45);
  transform: translateY(-1px);
}

.lp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--mp-muted);
  font-size: .78rem;
}

.lp-divider::before,
.lp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mp-border);
}

.lp-signup-row {
  text-align: center;
  font-size: .82rem;
  color: var(--mp-muted);
  margin-top: 16px;
}

.lp-signup-row a {
  color: var(--mp-sky);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.lp-footer {
  position: relative;
  z-index: 2;
  padding: 14px 32px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
  font-size: .72rem;
  color: rgba(255, 255, 255, .3);
}

.lp-footer span {
  color: rgba(255, 255, 255, .55)
}

/* ═══════════════════════════════════════════
   ── DASHBOARD SHELL ──
═══════════════════════════════════════════ */
.db-shell {
  display: flex;
  min-height: 100vh;
  background: var(--mp-bg);
}

/* ── SIDEBAR ── */
.db-sidebar {
  width: var(--mp-sidebar-w);
  background: #fff;
  border-right: 1px solid var(--mp-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 300;
  transition: width .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
  overflow: visible;
}

.db-sidebar.collapsed {
  width: var(--mp-sidebar-collapsed);
}

.db-sidebar.collapsed .db-nav-label,
.db-sidebar.collapsed .db-brand-name,
.db-sidebar.collapsed .db-brand-sub,
.db-sidebar.collapsed .db-nav-section-title,
.db-sidebar.collapsed .db-sidebar-footer-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.db-sidebar.collapsed .db-nav-item {
  justify-content: center
}

.db-sidebar.collapsed .db-nav-badge {
  display: none
}

/* ── SIDEBAR TOOLTIP ON HOVER (collapsed state) ── */
.db-nav-item {
  position: relative
}

.db-nav-tooltip {
  display: none;
  position: fixed;
  left: 76px;
  top: 0;
  background: #1e2d4a;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 14px 7px 12px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
  letter-spacing: .01em;
  align-items: center;
  gap: 6px;
}

.db-nav-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #1e2d4a;
}

.db-sidebar.collapsed .db-nav-item:hover .db-nav-tooltip {
  display: flex;
}

/* Sidebar brand */
.db-sidebar-brand {
  height: var(--mp-topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--mp-border);
  flex-shrink: 0;
  min-width: 0;
}

.db-brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.db-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  color: var(--mp-navy);
  white-space: nowrap;
  transition: opacity .2s, width .2s;
}

.db-brand-name span {
  color: var(--mp-sky)
}

.db-brand-sub {
  font-size: .6rem;
  color: var(--mp-muted);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: opacity .2s, width .2s;
}

/* Sidebar nav */
.db-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: visible;
  padding: 12px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--mp-border) transparent;
}

.db-sidebar-nav::-webkit-scrollbar {
  width: 4px
}

.db-sidebar-nav::-webkit-scrollbar-track {
  background: transparent
}

.db-sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--mp-border);
  border-radius: 2px
}

.db-nav-section-title {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mp-muted);
  padding: 10px 8px 4px;
  transition: opacity .2s;
  white-space: nowrap;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--mp-muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
  white-space: nowrap;
}

.db-nav-item:hover {
  background: #f1f4f9;
  color: var(--mp-navy);
}

.db-nav-item.db-active {
  background: rgba(29, 111, 212, .1);
  color: var(--mp-sky);
  font-weight: 600;
}

.db-nav-item.db-active .db-nav-icon {
  color: var(--mp-sky)
}

.db-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-muted);
  transition: color .18s;
}

.db-nav-item:hover .db-nav-icon {
  color: var(--mp-navy)
}

.db-nav-label {
  transition: opacity .2s
}

.db-nav-badge {
  margin-left: auto;
  background: var(--mp-red);
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.db-nav-badge.badge-amber {
  background: var(--mp-amber)
}

.db-nav-badge.badge-green {
  background: var(--mp-green)
}

/* Sidebar footer */
.db-sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--mp-border);
  flex-shrink: 0;
}

.db-sidebar-footer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafd;
}

.db-sidebar-footer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mp-sky), var(--mp-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.db-sidebar-footer-text {
  transition: opacity .2s
}

.db-sidebar-footer-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--mp-text);
  white-space: nowrap;
}

.db-sidebar-footer-role {
  font-size: .68rem;
  color: var(--mp-muted);
  white-space: nowrap;
}

/* Sidebar toggle btn */
.db-sidebar-toggle {
  position: fixed;
  top: 16px;
  left: calc(var(--mp-sidebar-w) - 14px);
  width: 28px;
  height: 28px;
  background: #fff;
  border: 1px solid var(--mp-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 2px 8px rgba(13, 34, 64, .12);
  transition: left .25s cubic-bezier(.4, 0, .2, 1);
  color: var(--mp-muted);
}

.db-sidebar-toggle:hover {
  background: var(--mp-sky);
  color: #fff;
  border-color: var(--mp-sky)
}

.db-sidebar.collapsed~.db-sidebar-toggle,
.db-sidebar-toggle.collapsed {
  left: calc(var(--mp-sidebar-collapsed) - 14px);
}

/* ── MAIN CONTENT ── */
.db-main {
  flex: 1;
  margin-left: var(--mp-sidebar-w);
  transition: margin-left .25s cubic-bezier(.4, 0, .2, 1);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.db-main.collapsed {
  margin-left: var(--mp-sidebar-collapsed);
}

/* ── TOPBAR ── */
.db-topbar {
  height: var(--mp-topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 16px;
}

.db-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px
}

.db-topbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--mp-navy);
}

.db-topbar-breadcrumb {
  font-size: .75rem;
  color: var(--mp-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.db-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px
}

.db-topbar-live {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--mp-green);
}

.db-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: mp-pulse 1.4s infinite;
}

@keyframes mp-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(.8)
  }
}

.db-topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafd;
  border: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s;
  color: var(--mp-muted);
  position: relative;
}

.db-topbar-btn:hover {
  background: var(--mp-sky);
  color: #fff;
  border-color: var(--mp-sky)
}

.db-notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mp-red);
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.db-topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background .18s;
}

.db-topbar-user:hover {
  background: #f1f4f9
}

.db-topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mp-sky), var(--mp-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
}

.db-topbar-uname {
  font-size: .82rem;
  font-weight: 600;
  color: var(--mp-text)
}

.db-topbar-urole {
  font-size: .68rem;
  color: var(--mp-muted)
}

/* ── CONTENT AREA ── */
.db-content {
  padding: 24px;
  flex: 1;
}

/* ── STAT CARDS ── */
.mp-stat-card {
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}

.mp-stat-card:hover {
  box-shadow: var(--mp-shadow-md);
  transform: translateY(-2px);
}

.mp-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--mp-radius) var(--mp-radius) 0 0;
  background: var(--mp-stripe, var(--mp-sky));
}

.mp-stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mp-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: .7rem;
  font-weight: 700;
}

.mp-badge-green {
  background: #f0fdf4;
  color: var(--mp-green)
}

.mp-badge-red {
  background: #fef2f2;
  color: var(--mp-red)
}

.mp-badge-amber {
  background: #fffbeb;
  color: #92400e
}

.mp-badge-blue {
  background: #eff6ff;
  color: var(--mp-sky)
}

.mp-stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.mp-stat-label {
  font-size: .76rem;
  font-weight: 500;
  color: var(--mp-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.mp-stat-sub {
  font-size: .76rem;
  color: var(--mp-muted)
}

.mp-stat-progress {
  height: 4px;
  background: #f1f4f9;
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.mp-stat-progress-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--mp-stripe, var(--mp-sky));
  transition: width .8s ease;
}

/* ── TABLE CARD ── */
.mp-table-card {
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
}

.mp-table-hdr {
  padding: 16px 20px;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-table-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--mp-navy);
}

.mp-table-sub {
  font-size: .75rem;
  color: var(--mp-muted)
}

.mp-table-wrap {
  overflow-x: auto
}

table.mp-tbl {
  width: 100%;
  border-collapse: collapse
}

.mp-tbl th {
  background: #f8fafd;
  padding: 10px 16px;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mp-muted);
  border-bottom: 1px solid var(--mp-border);
  white-space: nowrap;
}

.mp-tbl td {
  padding: 12px 16px;
  font-size: .84rem;
  border-bottom: 1px solid rgba(221, 227, 239, .5);
  vertical-align: middle;
}

.mp-tbl tr:last-child td {
  border-bottom: none
}

.mp-tbl tr:hover td {
  background: #f8fafd
}

.mp-vtag {
  font-family: monospace;
  font-size: .8rem;
  background: #f1f4f9;
  border: 1px solid var(--mp-border);
  border-radius: 5px;
  padding: 2px 8px;
  font-weight: 600;
  color: var(--mp-navy);
}

.mp-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block
}

.mp-action-btn {
  background: none;
  border: 1.5px solid var(--mp-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--mp-muted);
  transition: all .18s;
}

.mp-action-btn:hover {
  border-color: var(--mp-sky);
  color: var(--mp-sky)
}

/* ── SECTION HEADER ── */
.mp-section-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mp-sky);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-section-eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--mp-sky);
  border-radius: 2px
}

.mp-section-h {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mp-navy);
  margin-bottom: 4px;
}

.mp-section-sub {
  font-size: .84rem;
  color: var(--mp-muted);
  margin-bottom: 0
}

/* ── PERIOD TABS ── */
.mp-period-tabs {
  display: flex;
  gap: 6px
}

.mp-period-tab {
  background: #f1f4f9;
  color: var(--mp-muted);
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}

.mp-period-tab.active {
  background: var(--mp-sky);
  color: #fff;
  border-color: var(--mp-sky);
}

/* ── CHART CARD ── */
.mp-chart-card {
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 20px;
  height: 100%;
}

.mp-chart-placeholder {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  padding: 10px 0 0;
}

.mp-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px
}

.mp-bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  transition: height .6s ease;
  min-height: 4px;
}

.mp-bar-lbl {
  font-size: .62rem;
  color: var(--mp-muted);
  font-weight: 500
}

/* ── REPORT PAGE SPECIFIC ── */
.mp-report-filter-card {
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.mp-form-group-rp {
  margin-bottom: 0
}

.mp-form-label-rp {
  font-size: .74rem;
  font-weight: 600;
  color: var(--mp-text);
  margin-bottom: 5px;
  display: block;
}

.mp-form-ctrl-rp {
  width: 100%;
  border: 1.5px solid var(--mp-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .84rem;
  color: var(--mp-text);
  background: #f8fafd;
  transition: border-color .18s;
  outline: none;
}

.mp-form-ctrl-rp:focus {
  border-color: var(--mp-sky);
  background: #fff
}

.mp-filter-btn {
  background: var(--mp-sky);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mp-filter-btn:hover {
  background: #1d4ed8
}

.mp-export-btn {
  background: #fff;
  color: var(--mp-text);
  border: 1.5px solid var(--mp-border);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mp-export-btn:hover {
  border-color: var(--mp-green);
  color: var(--mp-green)
}

/* ── ALERT BANNER ── */
.mp-alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.mp-alert-banner-icon {
  color: var(--mp-red);
  flex-shrink: 0
}

.mp-alert-banner-msg {
  font-size: .84rem;
  color: #991b1b;
  font-weight: 500
}

.mp-alert-banner-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #b91c1c
}

/* ── MINI STATUS CARD ── */
.mp-status-card {
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

.mp-status-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-status-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.mp-status-label {
  font-size: .76rem;
  color: var(--mp-muted);
  font-weight: 500
}

.mp-status-pct {
  font-size: .72rem;
  font-weight: 700;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ── CAMERA GRID ── */
.mp-cam-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border-radius: 10px;
  overflow: hidden
}

.mp-cam-cell {
  background: #0a1628;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  font-size: .64rem;
  color: rgba(255, 255, 255, .5);
}

.mp-cam-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?w=300&auto=format&fit=crop&q=40') center/cover;
  opacity: .12;
}

.mp-cam-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(0, 0, 0, .04) 2px, rgba(0, 0, 0, .04) 4px)
}

.mp-cam-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: .6rem;
  font-weight: 700;
}

.mp-cam-live {
  background: rgba(34, 197, 94, .2);
  border: 1px solid rgba(34, 197, 94, .4);
  color: #4ade80
}

.mp-cam-alert {
  background: rgba(239, 68, 68, .2);
  border: 1px solid rgba(239, 68, 68, .4);
  color: #f87171
}

.mp-cam-name {
  position: relative;
  z-index: 1;
  font-size: .62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
  text-transform: uppercase
}

.mp-cam-id {
  position: relative;
  z-index: 1;
  font-size: .56rem;
  color: rgba(255, 255, 255, .25)
}

/* Responsive */
@media(max-width:992px) {
  .db-sidebar {
    width: var(--mp-sidebar-collapsed) !important
  }

  .db-sidebar .db-nav-label,
  .db-sidebar .db-brand-name,
  .db-sidebar .db-brand-sub,
  .db-sidebar .db-nav-section-title,
  .db-sidebar .db-sidebar-footer-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .db-sidebar .db-nav-item {
    justify-content: center
  }

  .db-sidebar .db-nav-badge {
    display: none
  }

  .db-main {
    margin-left: var(--mp-sidebar-collapsed) !important
  }

  .db-sidebar-toggle {
    left: calc(var(--mp-sidebar-collapsed) - 14px) !important
  }

  .lp-main {
    flex-direction: column;
    align-items: center
  }

  .lp-right {
    width: 100%;
    max-width: 420px
  }
}

@media(max-width:576px) {
  .db-content {
    padding: 16px
  }

  .lp-topbar {
    padding: 12px 16px
  }

  .lp-main {
    padding: 20px 16px
  }
}